﻿
var page = {

    /* 此方法在第一次显示窗体前发生 */
    onLoad: function (event) {

    },

    /* 此方法展示窗体后发生 */
    onResume: function (event) {

    },

    /* 当前页状态变化为显示时触发 */
    onShow: function (event) {

    },

    /* 当前页状态变化为隐藏时触发 */
    onHide: function (event) {

    },

    /* 此方法关闭窗体前发生 */
    onExit: function (event) {

    },


    onbtn: function (event) {
        console.dir(event);
        var effect = "";
        switch (event.target.id) {
            case "button1":
                pm.navigateTo('scaner_page/scaner_page');
                break;
            case "button2":
                pm.navigateTo('heart_page/heart_page');
                break;
            case "button3":
                pm.navigateTo('safe_plase_page/safe_plase_page');
                break;
            case "button4":
                pm.navigateBack();
                break;
            case "button5":
                pm.navigateTo('my_page/my_page');
                break;
            case "button6":
                pm.navigateTo('calendar/calendar');
                break;
            case "button7":
                pm.navigateTo('movie_page/movie_page');
                break;
            case "button8":
                pm.navigateTo("fire_page/fire_page");
                break;
            default:
                return;
                break;
        }
    },
};

Page(page);

page = 0;
